<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>向网页输出一个标题和两个段落</title>
</head>

<body>
    <h1>我的 Web 页面</h1>
    <p id="demo">一个段落。</p>
    <div id="myDIV">一个 DIV。</div>
    <script>
        document.getElementById("demo").innerHTML = "你好tom";
        document.getElementById("myDIV").innerHTML = "你最近怎么样";
    </script>
</body>

</html>